﻿namespace ChinaUnicom
{
    using System;
    using ChinaUnicom.Web;

    public interface IOperation
    {
        DateTime LastUpdated { get; }

        void CreateSession(Action<HttpStatus> callback);

        void AutoLogin(Action<HttpStatus> callback);

        void Login(string mobile, string password, string imgcode, Action<HttpStatus> callback);

        void Logout();

        void RequestUserInfo(Action<HttpStatus> callback);

        void RequestPackageInfo(Action<HttpStatus> callback);

        void RequestFeeInfo(Action<HttpStatus> callback);

        void RequestCodeImage(Action<HttpStatus> callback);

        void RequestFeeHistory(int year, int month, Action<HttpStatus> callback);
        
        void RequestPoint(Action<HttpStatus> callback);

        void RequestProduct(Action<HttpStatus> callback);
    }
}
